import request from '@/utils/request'
export function getBookInfo(query) {
    return request({
      url: '/bookManage/searchBook',
      method: 'post',
      data:query,
    })
  }
  //图书借阅
  export function BookLend(query) {
    return request({
      url: '/book/lend/lendBook',
      method: 'post',
      data:query,
    })
  }
  export function getHotList(query) {
    return request({
      url: '/book/lend/getHotList',
      method: 'get',
      params: query,
    })
  }
  //折线图数据
  export function reqHistogram(query) {
    return request({
      url: '/statistics/lendStatistics',
      method: 'get',
      params: query,
    })
  }
  //饼状图
  export function reqPiechart(query) {
    return request({
      url: '/statistics/languageNum',
      method: 'get',
      params: query,
    })
  }
  //柱状图
  export function reqgraph_one(query) {
    return request({
      url: '/statistics/authorBookNum',
      method: 'get',
      params: query,
    })
  }


